package com.demos.springcloud.consumer03HystrixFallback.controller;

import com.netflix.hystrix.contrib.javanica.annotation.DefaultProperties;
import org.springframework.web.bind.annotation.RestController;

/**
 * 全局降级方法
 */
@RestController
@DefaultProperties(defaultFallback = "methodsFallback")
public class controllerGlobalFallback {

    public String methodsFallback() {
        return "本controller默认回退方法";
    }

}
